/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pgpframework.hash;

/**
 *
 * @author ufabc
 */
public class SHAHashGenerator extends HashGenerator implements IHashGenerator {

    @Override
    public byte[] generateHash(String text) {
      return this.gerarHash(text,"SHA-256");
    }

    @Override
    public String generateStringHash(String text) {
        byte[] hash = this.generateHash(text);
        String hashText = this.hashToString(hash);
        
       return hashText;
    }
    
}
